import http from "../http";

function create(params: any = {}) {
	return http.myRequest({
		url: '/server/appointment/create',
		method: 'post',
		data: params,
	})
}

function list(params:any={}){
	return http.myRequest({
		url:'/server/appointment/list',
		method:'post',
		data:params
	})
}
function id(params:any={}){
	return http.myRequest({
		url:'/server/appointment/id',
		method:'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data:params
	})
}
function treat(params:any={}){
	return http.myRequest({
		url:'/server/appointment/treat',
		method:'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data:params
	})
}

function cancelById(params:any={}){
	return http.myRequest({
		url:'/server/appointment/cancelById',
		method:'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data:params
	})
}

function finish(params:any={}){
	return http.myRequest({
		url:'/server/appointment/finish',
		method:'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data:params
	})
}
function appraise(params:any={}){
	return http.myRequest({
		url:'/server/appointment/appraise',
		method:'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data:params
	})
}

export default {
	create,
	list,
	id,
	treat,
	cancelById,
	finish,
	appraise
}